package cn.mumzone.pos.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by qiuzhenhuan on 2019/6/28.
 */

public class TicketEntity implements Serializable {

    public static final int TICKET_TYPE_DISCOUNT = 1;//满减券
    public static final int TICKET_TYPE_EXPERIMENT = 0;
    public static final int TICKET_TYPE_COUPON= 4;//折扣券
    public static final int TICKET_TYPE_COUPON_SETTLE= 5;//结账时返回折扣券类型
    public static final int TICKET_TYPE_ACTIVITY= 8;//满减活动
    public static final int TICKET_TYPE_ACTIVITY_DISCOUNT= 9;//满折活动

    private int ticketType;
    private int index;
    private String ticketAmount;
    private long endDate;
    private String memberName;
    private long updateTime;
    private int source;
    private String companyId;
    private long createTime;
    private String phone;
    private String id;
    private String memberCompanyId;
    private long startDate;
    private String ticketId;
    private String status;
    private boolean isChecked;
    private String ticketName;
    private String joinType;
    private String applyType;
    private String integral;
    private int isShare;
    private String limitAmount;
    private String isMember;
    private int cardNum;

    public String getIsMember() {
        return isMember;
    }

    public void setIsMember(String isMember) {
        this.isMember = isMember;
    }

    private String serviceId;

    private String serviceName;

    private String ticketDiscount;

    public String getIntegral() {
        return integral;
    }

    public void setIntegral(String integral) {
        this.integral = integral;
    }

    public String getTicketDiscount() {
        return ticketDiscount;
    }

    public void setTicketDiscount(String ticketDiscount) {
        this.ticketDiscount = ticketDiscount;
    }

    private List<ServicesBean> serviceList;

    public int getTicketType() {
        return ticketType;
    }

    public void setTicketType(int ticketType) {
        this.ticketType = ticketType;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getTicketAmount() {
        return ticketAmount;
    }

    public void setTicketAmount(String ticketAmount) {
        this.ticketAmount = ticketAmount;
    }

    public long getEndDate() {
        return endDate;
    }

    public void setEndDate(long endDate) {
        this.endDate = endDate;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public int getSource() {
        return source;
    }

    public void setSource(int source) {
        this.source = source;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemberCompanyId() {
        return memberCompanyId;
    }

    public void setMemberCompanyId(String memberCompanyId) {
        this.memberCompanyId = memberCompanyId;
    }

    public long getStartDate() {
        return startDate;
    }

    public void setStartDate(long startDate) {
        this.startDate = startDate;
    }

    public String getTicketId() {
        return ticketId;
    }

    public void setTicketId(String ticketId) {
        this.ticketId = ticketId;
    }

    public String getStatus() {
        return status;//0：可用的，未使用  2：已过期
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public String getTicketName() {
        return ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }

    public String getJoinType() {
        return joinType;
    }

    public void setJoinType(String joinType) {
        this.joinType = joinType;
    }

    public String getApplyType() {
        return applyType;
    }

    public void setApplyType(String applyType) {
        this.applyType = applyType;
    }

    public int getIsShare() {
        return isShare;
    }

    public void setIsShare(int isShare) {
        this.isShare = isShare;
    }

    public String getLimitAmount() {
        return limitAmount;
    }

    public void setLimitAmount(String limitAmount) {
        this.limitAmount = limitAmount;
    }

    public int getCardNum() {
        return cardNum;
    }

    public void setCardNum(int cardNum) {
        this.cardNum = cardNum;
    }

    public List<ServicesBean> getServiceList() {
        return serviceList;
    }

    public void setServiceList(List<ServicesBean> serviceList) {
        this.serviceList = serviceList;
    }

    public String getServiceId() {
        return serviceId;
    }

    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    public class ServicesBean implements Serializable {

        private String serviceName;
        private String serviceId;
        private String price;

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getServiceName() {
            return serviceName;
        }

        public void setServiceName(String serviceName) {
            this.serviceName = serviceName;
        }

        public String getServiceId() {
            return serviceId;
        }

        public void setServiceId(String serviceId) {
            this.serviceId = serviceId;
        }
    }
}
